<template>
  <div class="preview-container">
    <div class="intro-section">
      <div class="intro-header">
        <!-- <i class="el-icon-reading"></i> -->
         <img src="images/jh.png" width="180px" style="margin-bottom: 20px;" alt="">
        <h1>必答</h1>
      </div>
      <div class="intro-content">
        <div class="intro-card">
          <!-- <i class="el-icon-warning-outline"></i> -->
          <p>大屏展示1-12号必答题（填空题和简答题），决赛选手按照初赛成绩顺序，依次选择其中1个题目作答（每题10分）</p>
        </div>
        <!-- <div class="intro-card">
          <i class="el-icon-refresh"></i>
          <p>题目主要内容为队伍建设、派出所基础业务、社区警务平台信息化运用等</p>
        </div>
        <div class="intro-card">
          <i class="el-icon-connection"></i>
          <p>考生按照顺序依次选择题目作答</p>
        </div>
        <div class="intro-card">
          <i class="el-icon-time"></i>
          <p>答题时请仔细思考后再作答，</p>
        </div> -->
      </div>
    </div>
    <div class="start-button-container">
      <div class="start-button-wrapper" @click="startExam">
        <div class="start-button">
          <i class="el-icon-video-play"></i>
          <span>开始考试</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PreviewRequired",
  methods: {
    startExam() {
      this.$router.push({name:"StartRequired"})
    }
  }
}
</script>

<style scoped>
.preview-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.intro-section {
  max-width: 800px;
  width: 100%;
  margin-bottom: 50px;
}

.intro-header {
  text-align: center;
  margin-bottom: 40px;
}

.intro-header i {
  font-size: 40px;
  color: #409EFF;
  margin-bottom: 15px;
}

.intro-header h1 {
  color: #303133;
  font-size: 32px;
  margin: 0;
}

.intro-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.intro-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.intro-card:hover {
  transform: translateY(-5px);
}

.intro-card i {
  font-size: 30px;
  color: #409EFF;
  margin-bottom: 15px;
}

.intro-card p {
  color: #606266;
  margin: 0;
  font-size: 16px;
}

.start-button-container {
  margin-top: 30px;
}

.start-button-wrapper {
  cursor: pointer;
  padding: 10px;
}

.start-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #409EFF, #36a3ff);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(64, 158, 255, 0.6);
}

.start-button i {
  font-size: 40px;
  margin-bottom: 10px;
}

.start-button span {
  font-size: 16px;
  font-weight: bold;
}
</style>